class User < ActiveRecord::Base
  validates_uniqueness_of :username
  validates_presence_of :password
  validates_length_of :password, :username, :minimum => 5
  has_many :accesses
end
